package com.woniu40.petai_manager.mapper;

import com.woniu40.petai_manager.entity.Order;
import com.woniu40.petai_manager.vo.OrderVo;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(Order record);

    Order selectByPrimaryKey(Integer orderId);

//    List<Order> selectAll();

    int updateByPrimaryKey(Order record);

    List<Order> findAll();

    @Update("update t_order set order_status=1 where order_id=#{id}")
    int update(Integer id);

}